home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Shortcut Maker"
- ClientHeight = 2715
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 6360
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2715
- ScaleWidth = 6360
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command2
- Caption = "Quit"
- Height = 375
- Left = 120
- TabIndex = 7
- Top = 2280
- Width = 975
- End
- Begin VB.CommandButton Command1
- Caption = "Create Shortcut"
- Height = 375
- Left = 4920
- TabIndex = 6
- Top = 2280
- Width = 1335
- End
- Begin VB.Frame Frame3
- Caption = "Step 1 - Enter the filename of the link (eg ""Shortcut To Notepad"")"
- Height = 615
- Left = 120
- TabIndex = 4
- Top = 1560
- Width = 6135
- Begin VB.TextBox TxtName
- Height = 285
- Left = 120
- TabIndex = 5
- Text = "Shortcut To Notepad"
- Top = 240
- Width = 5895
- End
- End
- Begin VB.Frame Frame2
- Caption = "Step 2 - Enter the folder you want the link to display in (eg ""C:\windows\desktop"")"
- Height = 615
- Left = 120
- TabIndex = 2
- Top = 840
- Width = 6135
- Begin VB.TextBox TxtFolder
- Height = 285
- Left = 120
- TabIndex = 3
- Text = "C:\windows\desktop"
- Top = 240
- Width = 5895
- End
- End
- Begin VB.Frame Frame1
- Caption = "Step 1 - Enter the file/folder you wish to link to (eg ""C:\windows\notepad.exe"")"
- Height = 615
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 6135
- Begin VB.TextBox TxtFile
- Height = 285
- Left = 120
- TabIndex = 1
- Text = "C:\windows\notepad.exe"
- Top = 240
- Width = 5895
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- If CreateFileShortcut(TxtFile, TxtFolder, TxtName, hwnd) = True Then
- MsgBox "Created Successfully!", vbInformation
- MsgBox "Couln't Create Link", vbCritical
- End If
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub
-